package com.eltonkent.dashboard.util.logger;

import java.util.Date;

public class Logger {
	// Enable it if Log's are not required.
	// private static ILoggerStrategy logger = new LoggerStrategyNoLog();

	// Enable it if Logs are required in file system.
//	private static ILoggerStrategy logger = new LoggerStrategyFS(
//			"/MyDashboard/", "log_" + new Date().getTime() + ".txt");

	// Enable it if Logs are required in LogCat.
	 private static ILoggerStrategy logger = new LoggerStrategyLog();

	public static void d(String tag, String message) {
		logger.d(tag, message);
	}

	public static void e(String tag, String message) {
		logger.e(tag, message);
	}

	public static void i(String tag, String message) {
		logger.i(tag, message);
	}

	public static void shutdown() {
		logger.shutdown();
	}

	public static void v(String tag, String message) {
		logger.v(tag, message);
	}

	public static void w(String tag, String message) {
		logger.w(tag, message);
	}

	public static void write(int level, String tag, String message) {
		logger.write(level, tag, message);
	}

	private Logger() {
	}
}
